﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Strive.Util.Text;
using Strive.Util.Logging;
using Strive.Core.Validations;
using Strive.Core.Service;
using Strive.Core.Translators;
using Strive.Util.Maths;
using Strive.Reflection;
using Strive.Aspects;
using OTA.Notification.Entity;
using OTA.Notification.Entity.Adapter;
using Strive.DataAccess;
namespace OTA.Notification.Entity.Template
{
    [Serializable]
    [Table(Name = "MSG_CONTENT_TEMPLATE")]
    public class MsgTemplateConfigBean
    {

        #region Private 成员

        private string _code = String.Empty;
        private string _name = String.Empty;
        private string _sendtypecode = String.Empty;
        private string _flag = String.Empty;
        private string _title = String.Empty;
        private string _content = String.Empty;
        private string _desc = String.Empty;
        private string _ower = String.Empty;
        private string _create_user = String.Empty;

        private DateTime _create_time = new DateTime(1900, 1, 1);

        private string _last_update_user_name = String.Empty;
        private DateTime _last_update_time = new DateTime(1900, 1, 1);

        #endregion

        #region Public 成员


        [Column(Name = "MSG_TEMPLATE_CODE"), PK]
        public string TemplateCode
        {
            get { return _code; }
            set
            {

                _code = value;

            }
        }


        [Column(Name = "MSG_TEMPLATE_NAME")]
        public string TemplateName
        {
            get { return _name; }
            set
            {

                if (value == null) return;
                if (_name as object == null || !_name.Equals(value))
                {
                    _name = value;
                }
            }
        }


        [Column(Name = "MSG_SEND_TYPE_CODE"), PK]
        public string SendTypeCode
        {
            get { return _sendtypecode; }
            set
            {

                if (value == null) return;
                if (_sendtypecode as object == null || !_sendtypecode.Equals(value))
                {
                    _sendtypecode = value;
                }
            }
        }


        [Column(Name = "DEFAULT_FLAG")]
        public string Flag
        {
            get { return _flag; }
            set
            {

                if (value == null) return;
                if (_flag as object == null || !_flag.Equals(value))
                {
                    _flag = value;
                }
            }
        }

        [Column(Name = "MSG_TEMPLATE_TITLE")]
        public string TemplateTitle
        {
            get { return _title; }
            set
            {

                if (value == null) return;

                if (_title as object == null || !_title.Equals(value))
                {
                    _title = value;
                }
            }
        }


        [Column(Name = "MSG_TEMPLATE_CONTENT")]
        public string Content
        {
            get { return _content; }
            set
            {

                if (value == null) return;
                if (_content as object == null || !_content.Equals(value))
                {
                    _content = value;
                }
            }
        }


        [Column(Name = "MSG_TEMPLATE_DESC")]
        public string Description
        {
            get { return _desc; }
            set
            {

                if (value == null) return;
                if (_desc as object == null || !_desc.Equals(value))
                {
                    _desc = value;
                }
            }
        }


        [Column(Name = "OWNER")]
        public string Owner
        {
            get { return _ower; }
            set
            {

                if (value == null) return;
                if (_ower as object == null || !_ower.Equals(value))
                {
                    _ower = value;
                }
            }
        }


        [Column(Name = "CREATE_USER_NAME")]
        public string CreateUserName
        {
            get { return _create_user; }
            set
            {

                if (value == null) return;
                if (_create_user as object == null || !_create_user.Equals(value))
                {
                    _create_user = value;
                }
            }
        }

        /// <summary>
        /// 属性名称：CreateTime
        /// 属性描述：
        /// 字段信息：[CREATE_TIME],datetime
        /// </summary>
        [Column(Name = "CREATE_TIME")]
        public DateTime CreateTime
        {
            get { return _create_time; }
            set
            {

                {
                    _create_time = value;
                }
            }
        }

        /// <summary>
        /// 属性名称：LastUpdateUserName
        /// 属性描述：
        /// 字段信息：[LAST_UPDATE_USER_NAME],nvarchar
        /// </summary>
        [Column(Name = "LAST_UPDATE_USER_NAME")]
        public string LastUpdateUserName
        {
            get { return _last_update_user_name; }
            set
            {

                if (value == null) return;
                if (_last_update_user_name as object == null || !_last_update_user_name.Equals(value))
                {
                    _last_update_user_name = value;
                }
            }
        }

        /// <summary>
        /// 属性名称：LastUpdateTime
        /// 属性描述：
        /// 字段信息：[LAST_UPDATE_TIME],datetime
        /// </summary>
        [Column(Name = "LAST_UPDATE_TIME")]
        public DateTime LastUpdateTime
        {
            get { return _last_update_time; }
            set
            {

                {
                    _last_update_time = value;
                }
            }
        }

        #endregion 
    }
}
